Use the new API to specify the gesture phase.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1992>
this.bind_property('orientation', this._touchGesture, 'orientation',
GObject.BindingFlags.SYNC_CREATE);
this.bind_property('distance', this._touchGesture, 'distance', 0);
- global.stage.add_action(this._touchGesture);
+ global.stage.add_action_full('swipe', Clutter.EventPhase.CAPTURE, this._touchGesture);
if (params.allowDrag) {
this._dragGesture = new TouchSwipeGesture(allowedModes, 1,